<%-- 
    Document   : agregarArea
    Created on : 08/12/2010, 11:22:17 AM
    Author     : andres
--%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<% request.setAttribute("allowed", "Gestionar Sedes, Areas y Edificios");%>
<%@ include file='../Templates/security.jsp' %>

<h1 class="title">Gestionar Areas</h1>
<hr>
<p class="meta"></p>
<center>
    <h2>Agregar Area</h2>
    <div id="center">
        <html:form action="/AreaAgregar" styleId="AgregarAreaForm" onsubmit="return sendForm('AgregarAreaForm', 'AreaAgregar','center');">
            <table>
                <tr>
                    <td colspan="4" align="center">
                        <font color="red">
                            <bean:write name="AgregarAreaForm" property="error"/>
                            &nbsp;
                        </font>
                    </td>
                </tr>
                <tr>
                    <td><font color="red">*&nbsp;</font>Nombre del Area:</td>
                    <td><html:text property="descripcion" size="20"/></td>
                </tr>
                <tr>
                    <td><font color="red">*&nbsp;</font>Sede:</td>
                    <td>
                        <select id="Sedes" name ="nombre_sede"></select>
                    </td>
                </tr>                
            </table>
            <br>
            <html:submit value = "Agregar"></html:submit>
            <html:reset value = "Limpiar"></html:reset>
            <html:button property="" styleId="novedadesAreas" value="Atrás" />
            <br>
            <font color="red"><p>Los campos que tiene (*) son obligatorios.</p></font>
            <br>

        </html:form>
    </div>
</center>
<script type="text/javascript">
    $(function(){
        listaSedes();
    });
</script>